package com.xius.controller;

import com.xius.common.R;
import com.xius.service.impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class MailUserController {

    @Autowired
    private UserService userService;

    @RequestMapping(value="/sendsms/{mobile}",method= RequestMethod.POST)
    public R sendsms(@PathVariable String mobile ){
        userService.sendSms(mobile);
        return R.ok("发送成功");
    }
}